<?php
namespace app\controller;

use app\BaseController;

class Test extends BaseController {
    public function index(){
        return "index，方法名：".$this->request->action();
    }
    public function hello($value=''){
        return 'hello '.$value;
    }

    public function arrayOutput(){
        $data =['A'=>1,'B'=>2,'C'=>3];
        return json($data);
    }
}